{% extends "layout.html" %}
{% block title %}首页{% endblock %}
{% block content %}
<div class="left">
    <div class="post-list">
        <ul>
            {% for item in data.items %}
            <li>
                <h2><a href="/post/{{ item.id }}.html" title="{{ item.title }}" target="_blank">
                    {{ item.title }} </a></h2>
                <p>{{ item.remark }}</p>
                <span class="l-span">日期&nbsp;{{ item.created_at }}&nbsp;&nbsp;阅&nbsp;{{ item.view_num }}&nbsp;&nbsp;</span>
            </li>
            {% endfor %}
        </ul>
    </div>
   <div class="paginate-div">
       {{ data | raw }}
   </div>
</div>
<aside class="right">
    <div class="ad">
    </div>
    <div class="aside-list">
        <div class="cardtit">最近更新的文章</div>
        <ul>
            {% for item in updates %}
            <li>
                <a href="/post/{{ item.id }}.html">{{ item.title }}</a>
                <span>{{ item.created_at }}</span>
            </li>
            {% endfor %}
        </ul>
    </div>
</aside>
{% endblock %}